<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>JAX数组</title>
</head>

<body>
    <div>JAX数组</div>
    <hr />
    <div id="demoReact"></div>
</body>
<script src="../../node_modules/babel-standalone/babel.min.js"></script>
<script src="../../node_modules/react/umd/react.development.js"></script>
<script src="../../node_modules/react-dom/umd/react-dom.development.js"></script>
<script type="text/babel">
    let arr = [
        <p>新闻1</p>,
        <p>新闻2</p>,
        <p>新闻3</p>,
        <p>新闻4</p>,
        <p>新闻5</p>,
        <p>新闻6</p>,
        <p>新闻7</p>,
    ];

    let myDom = (
        <div>
            {arr}
        </div>
    );
    let root = ReactDOM.createRoot(document.getElementById("demoReact"));
    root.render(myDom);
</script>

</html>